# Makefile fragment. Modulename is the directory name.
# (c) 2007 by Bernhard Froemel <bf@catechsoftworks.biz>

# mandatory prelude
include $(MSTDPRE)

# global module CFLAGS (added to everything within this module)
CFLAGS-$(MNAME) += -DGLOBAL=1

# node modules must be added here
OBJ-M-$(MNAME)-y	+= node0

# put global used library modules in here
OBJ-ESEL-$(MNAME)-y	+= 

# put module specific used library modules in here
OBJ-ESEL-MDEP-$(MNAME)-y += timer timer3 ringBuff hwusart

# put module specific library CFLAGS in here (added only locally to MDEP modules)
CFLAGS-ESEL-MDEP-$(MNAME) += -DLOCAL=1

# put used scade models in here (need to be defined in 
# library/scade/Makefile.scade)
OBJ-SCDL-$(MNAME)-y	+=

# and finally the required system libraries (e.g. you would 
# put 'm' in there if you want to use the math library)
LIB-LD-$(MNAME)		:= 

# this module is actually an application and we need to hint 
# that. other (not implemented) possibilities could be archives,
# shared libraries, whatever
MOD-$(MNAME)-OUTPUT	:= $(MNAME).elf

# if this is a ttpa target we need some additional settings which 
# are ignored unless MODE in project.mk is set to ttpa.
TTPA-$(MNAME)		:= -DMASTER $(ADD_NODECONF)
#TTPA-$(MNAME)		:= -DSLAVE $(ADD_NODECONF) -DSW_UART_TXUSEPORT -DLN_NODE=0x11
# don't disable the monitor unless you want to remain in the dark and completely clueless
TTPA_MONITOR_ENABLED	:= 1



#mandatory postlude
include $(MSTDPOST)
